package com.fognl.core.net.handler;

/** A response to a request. */
public class Response
{
	private Object data;
	
	/* package */
	Response(Object data)
	{
		this.data = data;
	}
	
	/** Return the data in this response. The exact type of this data is defined by the Request object
	 * that results in this response being sent to the caller.
	 */
	public Object getData() { return data; }
	
	public String toString()
	{
		return data != null? data.toString(): "null";
	}
}
